﻿using System;
using UnityEngine;

[RequireComponent(typeof(Animator))]
public class InstantiateAnimatorControllerOnAwake : MonoBehaviour
{
    private void Awake()
    {
        Animator component = base.GetComponent<Animator>();
        component.runtimeAnimatorController = UnityEngine.Object.Instantiate<RuntimeAnimatorController>(component.runtimeAnimatorController);
    }
}

